package com.udf.hive.unit;

import java.io.IOException;
import java.util.Properties;

public class PropertiesUnits {

    public Properties loadPro(String proPath) {
        Properties pro = new Properties();
        if (proPath != null && !proPath.trim().isEmpty()) {
            try {
                pro.load(this.getClass().getResourceAsStream(proPath));
            } catch (IOException e) {
                e.printStackTrace();
            }
        }
        return pro;
    }
}
